package com.yswl.pri.picture.entry;

import java.io.Serializable;

public enum ImageSourceCategory implements Serializable {
    HOT("最热", 1), LAST("最新", 2), RECOMMED("推荐", 3), RODM("随机", 4),FULI("福利", 5),MM("美眉", 6), JD("煎蛋", 7), MZ("妹子", 8);
    // 成员变量  
    private String name;
    private int index;

    // 构造方法  
    private ImageSourceCategory(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法  
    public static String getName(int index) {
        for (ImageSourceCategory c : ImageSourceCategory.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    // get set 方法  
    public String getName() {
        return name;
    }

    public int getIndex() {
        return index;
    }

}
